package com.relman.vo
{
	import com.adobe.cairngorm.vo.IValueObject;
	
	[Bindable]
	[RemoteClass(alias="com.relman.vo.TransHistoryVO")]
	public class TransHistoryVO implements IValueObject
	{
		public var username : String;
		
		public var success : String;

                public var occurred : String;

                public var project : String;

                public var action : String;

                public var message : String;


        public function toXML() : XML {
	      var retval : XML =
<history>
  <username>{username}</username>
  <success>{success}</success>
  <occurred>{occurred}</occurred>
  <project>{project}</project>
  <action>{action}</action>
  <message>{message}</message>
</history>
	      return retval;
	    }
		
	    public static function fromXML(histXML : XML) : TransHistoryVO {
              var histVO : TransHistoryVO = new TransHistoryVO();
              histVO.username = histXML.username;
              histVO.success = histXML.success;
              histVO.occurred = histXML.occurred;
              histVO.project = histXML.project;
              histVO.action = histXML.action;
              histVO.message = histXML.message;
	      return histVO;
	    }
}
}
		


